﻿<%@ Control Language="C#" Inherits="Shop.Framework.Control.ProductListItemControl" %>
<div style="background-color: #F2D2ED; height: auto; width: 207px; font-family: 'Tempus Sans ITC';font-size: medium;">    
        <div style="height:auto;width:155px;margin:0 auto;padding-top:5px;"> 
            <%if (DefaultImage != null) { %>            
                <img src="/productImages/<%=DefaultImage.Name %>" alt="image" width="150px"/>
            <%} else {%>
            <b>No image available</b>
            <%} %>
        </div>
        <br />
        <%=Html.Encode(Model.Name)%>
        <br/>                
        <div>
            <div style="width: 99px; float:left;background-image:url('/images/gradient-I184U.png');color: #FFFFFF;" ><%=Html.RouteLink("More Info", new {Controller = "Product", 
                name = Model.Name.Sanitize(), 
                idProduct = Model.IdProduct, 
                Action = "GetProductItem" })
            %></div>
            <div style="width: 107px; float:left;background-image:url(/images/gradient-I184U.png);text-align:right; color: #FFFFFF;" ><%=Html.Encode(string.Format("PHP {0}", Model.TaxedPrice.ToString("N2")))%></div>            
        </div>
        <br/>
        <%Html.RenderPartial("~/controls/AddToCartControl.ascx", Model);%>
</div>
